using UnityEngine;

namespace Voodoo.Meta
{
	[RequireComponent(typeof(Leaderboard))]
	public class LeaderboardHaptic : MonoBehaviour
	{
		private int _rankVibrationThreshold;

		public void Initialize(int rankVibrationThreshold)
		{
			_rankVibrationThreshold = rankVibrationThreshold;
		}

		public void VibrateOnAnimationStart()
		{
			Vibrate();
		}

		public void VibrateOnAnimationEnd()
		{
			Vibrate();
		}

		public void VibrateWhenRankClimbing(int rank)
		{
			if (_rankVibrationThreshold != 0 && rank % _rankVibrationThreshold == 0)
			{
				Vibrate();
			}
		}

		private void Vibrate()
		{
		}
	}
}
